//
//  FirstController.m
//  YY键盘
//
//  Created by hu on 16/7/27.
//  Copyright © 2016年 hu. All rights reserved.
//

#import "FirstController.h"
#import "ViewController.h"
#import "GWCommentInputView.h"

@interface FirstController ()<GWCommentInputDelegate>

@property (nonatomic, weak) GWCommentInputView* textView;

@end

@implementation FirstController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor colorWithRed:0 green:147/255. blue:1 alpha:1];

//    GWCommentInputView *textView = [GWCommentInputView shareManager];
//    textView.delegate = self ;
//    [textView show];
//    self.textView = textView;
}


- (void)chatBar:(GWCommentInputView *)chatBar sendMessage:(NSString *)message {
    NSLog(@"%@",message);
}

- (void)chatBarChangeHeight:(CGFloat)changeHeight toType:(GWFunctionViewShowType)toType {
    NSLog(@"change Height %f",changeHeight);
}

- (void)chatBarGrowingTextViewEditing:(CGFloat)changeHeight {
    NSLog(@"%f",changeHeight);
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [self.navigationController pushViewController:[ViewController new] animated:YES];
//    [self.textView endInputing];
}

@end
